{* 

	Top Navigation For User Control Panel 
	@author trungdt
	@since Sep 27, 2011
*}
{get_user assign=user}
<ul id="personal-nav">
	{if $user->id != '' && $user->id != 0} 
	<li class="a_hello">
		{$_TR.hello} {$user->firstname} {$user->lastname}
	</li>
	{/if}
	<li id="a_shoppingcart">
		<a class="cart" id="a_cart" href="javascript:void(0);">{$_TR.cart}
			(<var id="miniCartTotal">0</var>)
		</a>
		<div id="nav-cart" class="personal-nav-content width-0" style="left: -180px; display: none;">
		{chain module="productsmodule" action=cart_on_top"}
		</div>
	</li>
	{if $user->id != '' && $user->id != 0} 
	{permissions level=$smarty.const.UILEVEL_NORMAL}
		<li>
			<a class="request" href="{link module=requestmodule action=manage src='@random4ebb4717a55c0'}">Yêu cầu thuê phòng tập</a>
		</li>
		<li>
			<a class="cart_management" href="{link module=productsmodule action=bill_manager src='@random4e8077b200225'}">{$_TR.cart_management}</a>
		</li>
		{if $user->is_admin ==1 || $user->is_acting_admin == 1}
			<li>
			<a class="approve_user" href="{link module=loginmodule action=newuser_manage}">{$_TR.approve_user}</a>
			</li>
		{/if}
		<li>
			<a class="changepassword" href="{link module=loginmodule action=changepass}">{$_TR.change_password}</a>
		</li>
		<li>
			<a class="editprofile" href="{link module=loginmodule action=editprofile}">{$_TR.edit_profile}</a>
		</li>
		<li>
			<a class="logout" href="{link module=loginmodule action=logout}">{$_TR.logout}</a>
		</li>
	{/permissions}
	{else}
		<li>
			<a class="changepassword" href="{link module=loginmodule action=loginredirect}">{$_TR.login}</a>
		</li>
	{/if}
</ul>